package com.gvt.vo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
@SuppressWarnings("serial")
public class Table implements Serializable{
	private String catalog;
	private String schema;
	private String name;
	private String type;
	private List<Column> columns;
	private List<Column> primaryKeys;
	private Map<String,String> foreignKeys;
	
	public Table() {
		super();
	}
	public Table(String name, String type, String catalog, String schema,
			List<Column> columns, List<Column> primaryKeys, Map<String,String> foreignKeys) {
		super();
		this.name = name;
		this.type = type;
		this.catalog = catalog;
		this.schema = schema;
		this.columns = columns;
		this.primaryKeys = primaryKeys;
		this.foreignKeys = foreignKeys;
	}
	@Override
	public String toString() {
		return "Table: " + name + "\n" +
				"type: " + type 
				;
	}
	
	public String getCatalog() {
		return catalog;
	}
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}
	public String getSchema() {
		return schema;
	}
	public void setSchema(String schema) {
		this.schema = schema;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public List<Column> getColumns() {
		return columns;
	}
	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}
	public  List<Column> getPrimaryKeys() {
		return primaryKeys;
	}
	public void setPrimaryKeys( List<Column> primaryKeys) {
		this.primaryKeys = primaryKeys;
	}
	public  Map<String,String> getForeignKeys() {
		return foreignKeys;
	}
	public void setForeignKeys(Map<String,String> foreignKeys) {
		this.foreignKeys = foreignKeys;
	}
	
}
